var yIndex = function() {
	this.m_vu= null;
	this.imgLis = "";
}

yIndex.prototype.mainInit = function() {
	var that = this;
	//页面Vu初始化
	that.mainVuInit();
	//数据
	that.DataTest();
}

yIndex.prototype.mainVuInit = function() {
	var that = this;
	var m_vu = new Vue({
		el: '#main_page',
		data: {
			activeName:"first",
			carImg:that.imgLis,
			drawer: false,
       		direction: 'rtl',
		},
		wath:{
			activeName : function (idx) {
				console.log(idx);
			}
		},
		methods: {
			toLogin:function(){
				window.location.href="/blog/main/loginbck.html";
			},
			handleClick:function(val){
				console.log(val);
			},handleClose:function (val){
				this.$confirm('确认关闭？')
          .then(_ => {
            done();
          })
          .catch(_ => {});
			}
		}
	})
	that.m_vu = m_vu;
}

yIndex.prototype.DataTest = function() {
	var that = this;
	var imgLis= [
		{
			ImgeUrl:"TestImg/gd01.jpg",
			ImgeName :"冰公主"
		},{
			ImgeUrl:"TestImg/gd02.jpg",
			ImgeName :"风铃"
		},{
			ImgeUrl:"TestImg/gd03.jpg",
			ImgeName :"鬼刀"
		},{
			ImgeUrl:"TestImg/gd04.jpg",
			ImgeName :"绿儿"
		},{
			ImgeUrl:"TestImg/bannaer.png",
			ImgeName :"莫德雷德"
		}
	];
	that.m_vu._data.carImg =imgLis;
}